/**
 * 
 */
package edu.uoc.tdp.client.pantalles;


import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.JLabel;

import edu.uoc.tdp.client.comu.Util;

import java.awt.GridBagConstraints;
import java.awt.Rectangle;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JTextPane;
import javax.swing.JTextArea;
import javax.swing.JTable;
import javax.swing.JScrollPane;
import javax.swing.JCheckBox;
import javax.swing.JButton;

/**
 * @author Tomeu Antich
 *
 */
public class PantallaAltaEvent extends JPanel {

	private static final long serialVersionUID = 1L;
	private JLabel jLabelTitol = null;
	private JLabel jLabelCentreDocent = null;
	private JTextField jTextFieldCentreDocent = null;
	private JLabel jLabelCodiCentre = null;
	private JTextField jTextFieldCodiCentre = null;
	private JLabel jLabelDadesEvent = null;
	private JLabel jLabelNomEvent = null;
	private JLabel jLabelInici = null;
	private JLabel jLabelFi = null;
	private JLabel jLabelTipus = null;
	private JLabel jLabelIncripcio = null;
	private JLabel jLabelInscripciolimit = null;
	private JLabel jLabelDescripcio = null;
	private JLabel jLabelpercentMinNoModif = null;
	private JLabel jLabelPreu = null;
	private JLabel jLabelPlaces = null;
	private JLabel jLabelPlacesxRol = null;
	private JLabel jLabelPrerequisits = null;
	private JTextField jTextFieldNom = null;
	private JComboBox jComboBoxTipusEvent = null;
	private JTextField jTextFieldDataInici = null;
	private JTextField jTextFieldDataFi = null;
	private JTextField jTextFieldInscripcioInici = null;
	private JTextField jTextFieldinscripcioFi = null;
	private JTextField jTextFieldPreu = null;
	private JTextField jTextFieldPercentMinNoModif = null;
	private JTextField jTextFieldPlaces = null;
	private JTextArea jTextAreaDescripcio = null;
	private JTable jTablePrerequisits = null;
	private JCheckBox jCheckBoxEstudiant = null;
	private JCheckBox jCheckBoxDocent = null;
	private JCheckBox jCheckBoxNoDocent = null;
	private JCheckBox jCheckBoxAltres = null;
	private JLabel jLabelEstudiant = null;
	private JLabel jLabelDocent = null;
	private JLabel jLabelNoDocent = null;
	private JLabel jLabelAltres = null;
	private JScrollPane jScrollPanePrerequisits = null;
	private JTable jTablePrerequisit = null;
	private JButton jButtonDesar = null;
	private JButton jButtonDescartar = null;
	private JButton jButtonModificaPrerequisits = null;
	private JCheckBox jCheckBoxActiu = null;
	private JLabel jLabelActiu = null;
	private JButton jButtonBorrarCamps = null;
	/**
	 * This is the default constructor
	 */
	public PantallaAltaEvent() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		jLabelActiu = new JLabel();
		jLabelActiu.setBounds(new Rectangle(44, 319, 103, 16));
		jLabelActiu.setText(Util.GetEtiqueta("Event.gestio.Actiu"));
		jLabelAltres = new JLabel();
		jLabelAltres.setBounds(new Rectangle(527, 307, 38, 16));
		jLabelAltres.setText(Util.GetEtiqueta("Event.gestio.Altres"));
		jLabelNoDocent = new JLabel();
		jLabelNoDocent.setBounds(new Rectangle(527, 280, 38, 16));
		jLabelNoDocent.setText(Util.GetEtiqueta("Event.gestio.NoDocent"));
		jLabelDocent = new JLabel();
		jLabelDocent.setBounds(new Rectangle(527, 251, 38, 16));
		jLabelDocent.setText(Util.GetEtiqueta("Event.gestio.Docent"));
		jLabelEstudiant = new JLabel();
		jLabelEstudiant.setBounds(new Rectangle(527, 224, 38, 16));
		jLabelEstudiant.setText(Util.GetEtiqueta("Event.gestio.Estudiant"));
		jLabelPrerequisits = new JLabel();
		jLabelPrerequisits.setBounds(new Rectangle(314, 231, 38, 16));
		jLabelPrerequisits.setText(Util.GetEtiqueta("Event.gestio.prerequisits"));
		jLabelPlacesxRol = new JLabel();
		jLabelPlacesxRol.setBounds(new Rectangle(497, 195, 38, 16));
		jLabelPlacesxRol.setText(Util.GetEtiqueta("Event.gestio.PlacesxRol"));
		jLabelPlaces = new JLabel();
		jLabelPlaces.setBounds(new Rectangle(316, 194, 38, 16));
		jLabelPlaces.setText(Util.GetEtiqueta("Event.gestio.Places"));
		jLabelPreu = new JLabel();
		jLabelPreu.setBounds(new Rectangle(17, 255, 38, 16));
		jLabelPreu.setText(Util.GetEtiqueta("Event.gestio.Preu"));
		jLabelpercentMinNoModif = new JLabel();
		jLabelpercentMinNoModif.setBounds(new Rectangle(16, 287, 105, 16));
		jLabelpercentMinNoModif.setText(Util.GetEtiqueta("Event.gestio.percentMinNoModif"));
		jLabelDescripcio = new JLabel();
		jLabelDescripcio.setBounds(new Rectangle(16, 140, 38, 16));
		jLabelDescripcio.setText(Util.GetEtiqueta("Event.gestio.Descripcio"));
		jLabelInscripciolimit = new JLabel();
		jLabelInscripciolimit.setBounds(new Rectangle(148, 224, 38, 16));
		jLabelInscripciolimit.setText(Util.GetEtiqueta("Event.gestio.InscripcioLimit"));
		jLabelIncripcio = new JLabel();
		jLabelIncripcio.setBounds(new Rectangle(16, 224, 38, 16));
		jLabelIncripcio.setText(Util.GetEtiqueta("Event.gestio.Incripcio"));
		jLabelTipus = new JLabel();
		jLabelTipus.setBounds(new Rectangle(404, 106, 38, 16));
		jLabelTipus.setText(Util.GetEtiqueta("Event.gestio.TipusEvent"));
		jLabelFi = new JLabel();
		jLabelFi.setBounds(new Rectangle(148, 196, 38, 16));
		jLabelFi.setText(Util.GetEtiqueta("Event.gestio.DataFi"));
		jLabelInici = new JLabel();
		jLabelInici.setBounds(new Rectangle(16, 195, 38, 16));
		jLabelInici.setText(Util.GetEtiqueta("Event.gestio.DataInici"));
		jLabelNomEvent = new JLabel();
		jLabelNomEvent.setBounds(new Rectangle(16, 106, 38, 16));
		jLabelNomEvent.setText(Util.GetEtiqueta("Event.gestio.NomEvent"));
		jLabelDadesEvent = new JLabel();
		jLabelDadesEvent.setBounds(new Rectangle(15, 75, 38, 16));
		jLabelDadesEvent.setText(Util.GetEtiqueta("Event.gestio.DadesEvent"));
		jLabelCodiCentre = new JLabel();
		jLabelCodiCentre.setBounds(new Rectangle(469, 47, 38, 16));
		jLabelCodiCentre.setText(Util.GetEtiqueta("Event.gestio.CodiCentre"));
		jLabelCentreDocent = new JLabel();
		jLabelCentreDocent.setBounds(new Rectangle(15, 45, 38, 16));
		jLabelCentreDocent.setText(Util.GetEtiqueta("Event.gestio.CentreDocent"));
		jLabelTitol = new JLabel();
		jLabelTitol.setText(Util.GetEtiqueta("Event.gestio.titol"));
		jLabelTitol.setBounds(new Rectangle(15, 15, 38, 16));
		this.setSize(640, 380);
		this.setLayout(null);
		this.add(jLabelTitol, null);
		this.add(jLabelCentreDocent, null);
		this.add(getJTextFieldCentreDocent(), null);
		this.add(jLabelCodiCentre, null);
		this.add(getJTextFieldCodiCentre(), null);
		this.add(jLabelDadesEvent, null);
		this.add(jLabelNomEvent, null);
		this.add(jLabelInici, null);
		this.add(jLabelFi, null);
		this.add(jLabelTipus, null);
		this.add(jLabelIncripcio, null);
		this.add(jLabelInscripciolimit, null);
		this.add(jLabelDescripcio, null);
		this.add(jLabelpercentMinNoModif, null);
		this.add(jLabelPreu, null);
		this.add(jLabelPlaces, null);
		this.add(jLabelPlacesxRol, null);
		this.add(jLabelPrerequisits, null);
		this.add(getJTextFieldNom(), null);
		this.add(getJComboBoxTipusEvent(), null);
		this.add(getJTextFieldDataInici(), null);
		this.add(getJTextFieldDataFi(), null);
		this.add(getJTextFieldInscripcioInici(), null);
		this.add(getJTextFieldinscripcioFi(), null);
		this.add(getJTextFieldPreu(), null);
		this.add(getJTextFieldPercentMinNoModif(), null);
		this.add(getJTextFieldPlaces(), null);
		this.add(getJTextAreaDescripcio(), null);
		this.add(getJCheckBoxEstudiant(), null);
		this.add(getJCheckBoxDocent(), null);
		this.add(getJCheckBoxNoDocent(), null);
		this.add(getJCheckBoxAltres(), null);
		this.add(jLabelEstudiant, null);
		this.add(jLabelDocent, null);
		this.add(jLabelNoDocent, null);
		this.add(jLabelAltres, null);
		this.add(getJScrollPanePrerequisits(), null);
		this.add(getJButtonDesar(), null);
		this.add(getJButtonDescartar(), null);
		this.add(getJButtonModificaPrerequisits(), null);
		this.add(getJCheckBoxActiu(), null);
		this.add(jLabelActiu, null);
		this.add(getJButtonBorrarCamps(), null);
	}

	/**
	 * This method initializes jTextFieldCentreDocent	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldCentreDocent() {
		if (jTextFieldCentreDocent == null) {
			jTextFieldCentreDocent = new JTextField();
			jTextFieldCentreDocent.setBounds(new Rectangle(68, 45, 389, 20));
		}
		return jTextFieldCentreDocent;
	}

	/**
	 * This method initializes jTextFieldCodiCentre	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldCodiCentre() {
		if (jTextFieldCodiCentre == null) {
			jTextFieldCodiCentre = new JTextField();
			jTextFieldCodiCentre.setBounds(new Rectangle(520, 46, 90, 20));
		}
		return jTextFieldCodiCentre;
	}

	/**
	 * This method initializes jTextFieldNom	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldNom() {
		if (jTextFieldNom == null) {
			jTextFieldNom = new JTextField();
			jTextFieldNom.setBounds(new Rectangle(70, 105, 317, 20));
		}
		return jTextFieldNom;
	}

	/**
	 * This method initializes jComboBoxTipusEvent	
	 * 	
	 * @return javax.swing.JComboBox	
	 */
	private JComboBox getJComboBoxTipusEvent() {
		if (jComboBoxTipusEvent == null) {
			jComboBoxTipusEvent = new JComboBox();
			jComboBoxTipusEvent.setBounds(new Rectangle(462, 106, 151, 21));
		}
		return jComboBoxTipusEvent;
	}

	/**
	 * This method initializes jTextFieldDataInici	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldDataInici() {
		if (jTextFieldDataInici == null) {
			jTextFieldDataInici = new JTextField();
			jTextFieldDataInici.setBounds(new Rectangle(68, 193, 69, 20));
		}
		return jTextFieldDataInici;
	}

	/**
	 * This method initializes jTextFieldDataFi	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldDataFi() {
		if (jTextFieldDataFi == null) {
			jTextFieldDataFi = new JTextField();
			jTextFieldDataFi.setBounds(new Rectangle(198, 195, 82, 20));
		}
		return jTextFieldDataFi;
	}

	/**
	 * This method initializes jTextFieldInscripcioInici	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldInscripcioInici() {
		if (jTextFieldInscripcioInici == null) {
			jTextFieldInscripcioInici = new JTextField();
			jTextFieldInscripcioInici.setBounds(new Rectangle(68, 224, 67, 20));
		}
		return jTextFieldInscripcioInici;
	}

	/**
	 * This method initializes jTextFieldinscripcioFi	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldinscripcioFi() {
		if (jTextFieldinscripcioFi == null) {
			jTextFieldinscripcioFi = new JTextField();
			jTextFieldinscripcioFi.setBounds(new Rectangle(197, 225, 79, 20));
		}
		return jTextFieldinscripcioFi;
	}

	/**
	 * This method initializes jTextFieldPreu	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldPreu() {
		if (jTextFieldPreu == null) {
			jTextFieldPreu = new JTextField();
			jTextFieldPreu.setBounds(new Rectangle(66, 254, 64, 20));
		}
		return jTextFieldPreu;
	}

	/**
	 * This method initializes jTextFieldPercentMinNoModif	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldPercentMinNoModif() {
		if (jTextFieldPercentMinNoModif == null) {
			jTextFieldPercentMinNoModif = new JTextField();
			jTextFieldPercentMinNoModif.setBounds(new Rectangle(132, 287, 36, 20));
		}
		return jTextFieldPercentMinNoModif;
	}

	/**
	 * This method initializes jTextFieldPlaces	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldPlaces() {
		if (jTextFieldPlaces == null) {
			jTextFieldPlaces = new JTextField();
			jTextFieldPlaces.setBounds(new Rectangle(363, 194, 38, 20));
		}
		return jTextFieldPlaces;
	}

	/**
	 * This method initializes jTextAreaDescripcio	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getJTextAreaDescripcio() {
		if (jTextAreaDescripcio == null) {
			jTextAreaDescripcio = new JTextArea();
			jTextAreaDescripcio.setBounds(new Rectangle(73, 141, 542, 38));
		}
		return jTextAreaDescripcio;
	}


	/**
	 * This method initializes jCheckBoxEstudiant	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBoxEstudiant() {
		if (jCheckBoxEstudiant == null) {
			jCheckBoxEstudiant = new JCheckBox();
			jCheckBoxEstudiant.setBounds(new Rectangle(496, 220, 21, 21));
		}
		return jCheckBoxEstudiant;
	}

	/**
	 * This method initializes jCheckBoxDocent	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBoxDocent() {
		if (jCheckBoxDocent == null) {
			jCheckBoxDocent = new JCheckBox();
			jCheckBoxDocent.setBounds(new Rectangle(497, 249, 21, 21));
		}
		return jCheckBoxDocent;
	}

	/**
	 * This method initializes jCheckBoxNoDocent	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBoxNoDocent() {
		if (jCheckBoxNoDocent == null) {
			jCheckBoxNoDocent = new JCheckBox();
			jCheckBoxNoDocent.setBounds(new Rectangle(497, 279, 21, 21));
		}
		return jCheckBoxNoDocent;
	}

	/**
	 * This method initializes jCheckBoxAltres	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBoxAltres() {
		if (jCheckBoxAltres == null) {
			jCheckBoxAltres = new JCheckBox();
			jCheckBoxAltres.setBounds(new Rectangle(499, 304, 21, 21));
		}
		return jCheckBoxAltres;
	}

	/**
	 * This method initializes jScrollPanePrerequisits	
	 * 	
	 * @return javax.swing.JScrollPane	
	 */
	private JScrollPane getJScrollPanePrerequisits() {
		if (jScrollPanePrerequisits == null) {
			jScrollPanePrerequisits = new JScrollPane();
			jScrollPanePrerequisits.setBounds(new Rectangle(315, 255, 128, 72));
			jScrollPanePrerequisits.setViewportView(getJTablePrerequisit());
		}
		return jScrollPanePrerequisits;
	}

	/**
	 * This method initializes jTablePrerequisit	
	 * 	
	 * @return javax.swing.JTable	
	 */
	private JTable getJTablePrerequisit() {
		if (jTablePrerequisit == null) {
			jTablePrerequisit = new JTable();
		}
		return jTablePrerequisit;
	}

	/**
	 * This method initializes jButtonDesar	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonDesar() {
		if (jButtonDesar == null) {
			jButtonDesar = new JButton();
			jButtonDesar.setBounds(new Rectangle(531, 350, 89, 21));
			jButtonDesar.setText(Util.GetEtiqueta("Event.gestio.desar"));
		}
		return jButtonDesar;
	}

	/**
	 * This method initializes jButtonDescartar	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonDescartar() {
		if (jButtonDescartar == null) {
			jButtonDescartar = new JButton();
			jButtonDescartar.setBounds(new Rectangle(20, 351, 96, 18));
			jButtonDescartar.setText(Util.GetEtiqueta("Event.gestio.descartar"));
		}
		return jButtonDescartar;
	}

	/**
	 * This method initializes jButtonModificaPrerequisits	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonModificaPrerequisits() {
		if (jButtonModificaPrerequisits == null) {
			jButtonModificaPrerequisits = new JButton();
			jButtonModificaPrerequisits.setBounds(new Rectangle(372, 231, 60, 14));
		}
		return jButtonModificaPrerequisits;
	}

	/**
	 * This method initializes jCheckBoxActiu	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBoxActiu() {
		if (jCheckBoxActiu == null) {
			jCheckBoxActiu = new JCheckBox();
			jCheckBoxActiu.setBounds(new Rectangle(16, 316, 21, 21));
		}
		return jCheckBoxActiu;
	}

	/**
	 * This method initializes jButtonBorrarCamps	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonBorrarCamps() {
		if (jButtonBorrarCamps == null) {
			jButtonBorrarCamps = new JButton();
			jButtonBorrarCamps.setBounds(new Rectangle(263, 350, 99, 22));
			jButtonBorrarCamps.setText(Util.GetEtiqueta("Event.gestio.NetejarCamps"));
		}
		return jButtonBorrarCamps;
	}

}  //  @jve:decl-index=0:visual-constraint="22,11"
